package cn.zero.wechat.exception;


import cn.zero.wechat.resp.WechatError;

public class WechatErrorException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6760155506616004825L;
	private WechatError error;

	public WechatErrorException(WechatError error) {
		super(error.toString());
		this.error = error;
	}

	public WechatErrorException(WechatError error, Throwable cause) {
		super(error.toString(), cause);
		this.error = error;
	}

	public WechatError getError() {
		return this.error;
	}

}
